<?php
defined('SYSPATH') or die('No direct script access.');

class Controller_Helper_Api {
    const API_STATUS_OK                    = "1000";
    const API_MESSAGE_OK                   = "OK";
    
    const API_STATUS_PARAM_MISSING         = "1001";
    const API_MESSAGE_PARAM_MISSING        = "API Parameter(s) is missing.";
    
    const API_STATUS_PERMISSION_DENIED     = "1002";
    const API_MESSAGE_PERMISSION_DENIED    = "Permission is denied.";

    const API_USER_STATUS_LOGIN_ERROR     = "1003";
    const API_USER_MESSAGE_LOGIN_ERROR    = "Login fails.";

    const API_USER_STATUS_ACCOUNT_NOT_ACTIVATED = "1004";
    const API_USER_MESSAGE_ACCOUNT_NOT_ACTIVATED = 'Account is not activated.';

    const API_CONTENT_STATUS_NOT_EXSTING = "1005";
    const API_CONTENT_MESSAGE_NOT_EXSTING = 'Content is not existing.';

    const API_CONTENT_STATUS_ERROR_APIKEY = "1006";
    const API_CONTENT_MESSAGE_ERROR_APIKEY = 'Api key is not correct.';

    const API_AUTH_STATUS_SESSION_INVALID = "1007";
    const API_AUTH_MESSAGE_SESSION_INVALID = 'Invalid token.';

    const API_AUTH_STATUS_SESSION_EXPIRED = "1008";
    const API_AUTH_MESSAGE_SESSION_EXPIRED = 'Token has expired.';

    const API_404 = "404";
    const API_MESSAGE_404 = 'Page not found';

    const API_KEY = 'a99482735c6dbe77a6a49a508fba67236367dc9ddcd086a7557a27ebdb7138e0';
    const EXPIRED_TIME = 63072000;   // 2 years 360 * 2 * 24 * 60 * 60
    


    const API_STATUS_USER_NOT_EXISTING         = "1013";
    const API_MESSAGE_USER_NOT_EXIXTING        = "User is not existing";
    const API_MESSAGE_USER_PASS_NOT_VALID        = "User or password incorrect.";

    const API_STATUS_USER_IS_EXISTING         = "1014";
    const API_MESSAGE_USER_IS_EXIXTING        = "User is existing";
    
    const API_MESSAGE_Distributor_IS_EXIXTING        = "Distributor ID is existing";

    const API_STATUS_REGISTER_OK         = "1015";
    const API_MESSAGE_REGISTER_OK         = "register successful";

    const API_STATUS_REGISTER_FAIL       = "1016";
    const API_MESSAGE_REGISTER_FAIL         = "register fail";
    
    const API_STATUS_LOGIN_FAIL       = "1017";
    const API_MESSAGE_LOGIN_FAIL         = "login fail";
    
    const API_STATUS_LOCATION_IS_EXISTING         = "1017";
    const API_MESSAGE_LOCATION_IS_EXIXTING        = "Location is not existing";
    
    const API_STATUS_ITEM_IS_EXISTING         = "1018";
    const API_MESSAGE_ITEM_IS_EXIXTING        = "Item is not existing";
    
    
    const API_STATUS_PASS_NOT_VALID        = "1014";
    const API_MESSAGE_PASS_NOT_VALID        = "Password incorrect.";
    
    const API_LIMIT = "10";
    
    const API_STATUS_PLAY_LIMIE        = "1015";
    const API_MESSAGE_PLAYLIMIT        = "Play limit 3 today.";
    
    const API_STATUS_LEVEL_PLAYED        = "1016";
    const API_MESSAGE_LEVEL_PLAYED       = "This level played.";

}
?>
